package com.wx.chapter10.abstract_;

/**
 * ClassName:Abstract01
 * Package :com.wx.chapter10.abstract_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/7 - 20:55
 */
public class Abstract01 {
    public static void main(String[] args) {
    }
}

abstract class Animal {
    private String name;

    public Animal(String name) {
        this.name = name;
    }

    //抽象类没有方法体
    public abstract void eat();
}